package cn.juque.datapipeline.mapper;

import cn.juque.datapipeline.entity.TaskScript;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author JUQUE
 * @version 1.0.0
 * <ul>
 *  <li>simple-generator</li>
 *  <li>脚本信息</li>
 * </ul>
 * {@code @date} 2023-03-31 11:14:13
 **/
@Mapper
public interface TaskScriptMapper extends BaseMapper<TaskScript> {

    /**
     * 分页查询
     *
     * @param page       : page
     * @param taskScript : taskScript
     * @return List<TaskScript>
     */
    List<TaskScript> queryScriptList(Page<TaskScript> page, @Param("ew") TaskScript taskScript);

    /**
     * 查询
     *
     * @param taskScript : taskScript
     * @return List<TaskScript>
     */
    List<TaskScript> queryScriptList(@Param("ew") TaskScript taskScript);
}
